#ifndef TIMERBTN_H
#define TIMERBTN_H
#include<QPushButton>
#include<QTimer>
#include<QMouseEvent>
class TimerBtn:public QPushButton
{
    Q_OBJECT
public:

    TimerBtn(QWidget* parent=nullptr);
    ~TimerBtn();

    virtual void mouseReleaseEvent(QMouseEvent *e) override;
private:
    QTimer* _timer;
    int _counter;
};

#endif // TIMERBTN_H
